<template>
  <div class="blog-comment-container">
    <div>
      <NewMesssageArea :articleId="articleId" />
    </div>
  </div>
</template>

<script setup lang="ts">
// import { ref, getCurrentInstance, computed, onUnmounted, onMounted, type ComponentPublicInstance } from 'vue'
// import { getComments, postComment } from '@/api/blog'
// import { useRouter } from 'vue-router'
// import type { getCommentsType } from '@/types/blog'
// const router = useRouter()
// const proxy: ComponentPublicInstance<any> = getCurrentInstance()?.proxy
// const data = ref<getCommentsType>({ total: 0, rows: [] })
// const isLoading = ref(false)
// 当前文章的id
defineProps({
  articleId: {
    type: String,
    default: ''
  }
})
// onMounted(async () => {
//   data.value = await fetchData()
// })
</script>

<style scoped lang="scss">
.blog-comment-container {
  margin: 30px 0;
}
</style>
